package com.hs.carrental.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.hs.carrental.dto.car.CarsPageDto;
import com.hs.carrental.dto.car.SaveCarDto;
import com.hs.carrental.entity.Car;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hs.carrental.vo.car.CarPageVo;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author lyy
 * @since 2021-03-17
 */
public interface ICarService extends IService<Car> {

    boolean save(SaveCarDto saveCarDto);

    IPage<CarPageVo> getCarsPage(CarsPageDto carsPageDto);

    boolean updateTo0(Integer carId);
}
